//
//  ALColorAppearanceHeader.h
//  AwesomeLoan
//
//  Created by tanxiaokang on 2017/12/4.
//  Copyright © 2017年 RunNong. All rights reserved.
//

#ifndef ALColorAppearanceHeader_h
#define ALColorAppearanceHeader_h

// 颜色
/*******颜色规范*******/
#define RGBA_COLOR(R, G, B, A) [UIColor colorWithRed:((R) / 255.0f) green:((G) / 255.0f) blue:((B) / 255.0f) alpha:A]

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define RGBA_HexCOLOR(rgbValue, A) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:A]

#define RandomColor RGBA_COLOR(arc4random_uniform(256),arc4random_uniform(256),arc4random_uniform(256),1)

//主色#
#define MAIN_COLOR RGBA_COLOR(0xf5, 0x49, 0x49, 1)

#define TEXT_4C_COLOR RGBA_COLOR(0x4c, 0x4c, 0x4c, 1)
#define TEXT_66_COLOR RGBA_COLOR(0x66, 0x66, 0x66, 1)
#define TEXT_99_COLOR RGBA_COLOR(0x99, 0x99, 0x99, 1)
#define TEXT_33_COLOR RGBA_COLOR(0x33, 0x33, 0x33, 1)
#define BUTTON_5690fa_COLOR RGBA_COLOR(0x56, 0x90, 0xfa, 1)
#define VIEW_EFEFF4_COLOR RGBA_COLOR(0xef, 0xef, 0xf4, 1)

/****颜色****/
//品牌色
#define al_brands_color RGBA_HexCOLOR(0xFF870f, 1)

//辅助色al_cont_font_label
#define al_subcolor_nav RGBA_HexCOLOR(0x2A2F33, 1)
#define al_subcolor_blue RGBA_HexCOLOR(0x1A89FD, 1)
#define al_subcolor_pink RGBA_HexCOLOR(0xFF5151, 1)
#define al_subcolor_green RGBA_HexCOLOR(0x56D600, 1)
#define al_subcolor_black RGBA_HexCOLOR(0x000000, 1)
#define al_subcolor_white RGBA_HexCOLOR(0xFFFFFF, 1)

//文字用色
#define al_cont_input RGBA_HexCOLOR(0x333333, 1)
#define al_cont_font_label RGBA_HexCOLOR(0x999999, 1)
#define al_cont_text RGBA_HexCOLOR(0x666666, 1)
#define al_cont_placeholder RGBA_HexCOLOR(0xCCCCCC, 1)

//背景色
#define al_bg_a RGBA_HexCOLOR(0xF5F5F9, 1)
#define al_bg_b RGBA_HexCOLOR(0xFFFFFF, 1)
#define al_bg_line_a RGBA_HexCOLOR(0xE5E5E5, 1)
#define al_NavBG RGBA_COLOR(0x2f, 0x2f, 0x33, 1)

//按钮用色
#define al_button_enabled al_brands_color
#define al_button_highlight RGBA_HexCOLOR(0xFB811F, 1)
#define al_button_disabled RGBA_HexCOLOR(0xD9D9D9, 1)

//其他颜色
#define al_other_shadow RGBA_HexCOLOR(0x000000, 0.5)

#endif /* ALColorAppearanceHeader_h */
